package cn.tongji.edu.tjmobile.component;

import android.content.Context;
import android.graphics.Typeface;
import android.util.AttributeSet;
import android.widget.TextView;

public class HelveticaNeueUltraLightView extends TextView {

	private String fontPath = "fonts/Helvetica Neue UltraLight.ttf";
	
	public HelveticaNeueUltraLightView(Context context) {
		super(context);
		init(context);
	}

	public HelveticaNeueUltraLightView(Context context, AttributeSet attrs,
                                       int defStyle) {
		super(context, attrs, defStyle);
		init(context);
	}

	public HelveticaNeueUltraLightView(Context context, AttributeSet attrs) {
		super(context, attrs);
		init(context);
	}

	private void init(Context context) {
		Typeface tf = Typeface.createFromAsset(context.getAssets(), fontPath);
		this.setTypeface(tf);
	}

}